﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OneStop.Calculations
{
    public class WarningList : List<Warning>
    {
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            for (int i = 0; i < this.Count; i++)
            {
                sb.Append(this[i].ToString());

                if (i < this.Count - 1)
                {
                    sb.Append("\n");
                }
            }

            return sb.ToString();
        }
    }
}
